package org.zs.miracle.service.user.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.util.ArrayList;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.zs.miracle.common.base.dto.BaseDTO;
import org.zs.miracle.common.validate.ValidateNotNullAndEmpty;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SetRoleInputDTO extends BaseDTO {
  
  @Serial
  private static final long serialVersionUID = -2652755823180838443L;
  
  @Schema(description = "用户id", example = "12684")
  @ValidateNotNullAndEmpty(message = "用户id不能为空")
  private Long userId;
  
  /**
   * 角色id
   */
  @Schema(description = "角色id集合", example = "[1]")
  @ValidateNotNullAndEmpty(message = "角色不能为空")
  private ArrayList<Long> roleIds;
}